package com.lwc;

import com.lwc.config.CustomLoadBalanceConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableDiscoveryClient //启用服务注册与发现
@LoadBalancerClient(value = "sc-goods",configuration={CustomLoadBalanceConfiguration.class})  //启用自定义算法
public class OrderApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(OrderApp.class,args);
    }
}
